import { NgModule }             from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import {HostListComponent} from "./host-list.component";
import {HostDetailComponent} from "./host-detail.component";



const hostsRoutes: Routes = [
  { path: 'hosts',  component: HostListComponent },
  { path: 'host/:id', component: HostDetailComponent }
];

@NgModule({
  imports: [
    RouterModule.forChild(hostsRoutes)
  ],
  exports: [
    RouterModule
  ]
})
export class HostRoutingModule { }
